<template>
  <div class="apply">
    <Navigation :logoName="logoName" :routeInfo="routeInfo"></Navigation>
    <div class="formContent">
      
        <ArbitDetail :basicInfo="basicInfo"></ArbitDetail>
        <p class="line arbitline"><span class="title arbitline">仲裁规则文书
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.rulesInstrument)"><icon class="connectAddr"></icon>附件链接</a>
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.previewRulesInstrument)"><icon class="preview"></icon>预览</a></span>
        </p>
        <p class="line arbitline"><span class="title arbitline">仲裁申请书
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.applicationArbitration)"><icon class="connectAddr"></icon>附件链接</a>
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.previewApplicationArbitration)"><icon class="preview"></icon>预览</a></span>
        </p>
        <p class="line arbitline"><span class="title arbitline">应诉通知书
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.noticeRespondingAction)"><icon class="connectAddr"></icon>附件链接</a>
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.previewNoticeRespondingAction)"><icon class="preview"></icon>预览</a></span>
        </p>
        <p class="line arbitline" v-show="basicInfo.secretaryReview&&basicInfo.secretaryReview.award"><span class="title arbitline">裁决书
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.award)"><icon class="connectAddr"></icon>附件链接</a>
          <a @click="ruledoc(basicInfo.secretaryReview&&basicInfo.secretaryReview.previewAward)"><icon class="preview"></icon>预览</a></span>
        </p>
        <div class="show">
          <div class="btn-sty">
            <span class="btn btn-apply" @click="back">返回</span>
          </div>
        </div>
      
    </div>
    
  </div>
</template>

<script>
import Navigation from '../common/navigation'
import ArbitDetail from '../common/arbitdetail'
export default {
  name: 'ArbitratorVerifyDetail',
  data(){
     return {
        logoName:'立案审理详情',
        routeInfo:'首页/仲裁立案受理/立案审理详情',
        applyINfo:false,
        unapplyINfo:false,
        basicInfo:{},
        basicInfos:this.$route.params.caseno,
        evidence:[]
     }
  },
  props: {
    msg: String
  },
  methods:{
    ruledoc(param){
      if(param){
        window.open(param)
      }else{
        this.$Message.warning('文件为空');
      }
    },
    back(){
      this.$router.push('/Syspage/ArbitratordirectorIndex')
    },
    detail(){
      
    },
    cancel(){

    },
    handleSubmit () {
      
    },
    applyIN(){
      this.applyINfo=!this.applyINfo;
    },
    unapplyIN(){
      this.unapplyINfo=!this.unapplyINfo;
    }
  },
  components:{Navigation,ArbitDetail},
  created(){
    this.$http.post('/api'+this.urls.getCaseDetail,{caseNo:this.$route.params.caseno}).then((result)=>{
          if(result.data.code==200){
              this.basicInfo=result.data.data;
          }
    })
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
  .show{
    margin:0 20px;
    /* padding-top: 30px; */
  }
  label{
    color:#000;
  }
  
</style>
